const path = require('path')

/**
 * @type {import('rollup').RollupOptions}
 */
module.exports = {
    input: path.resolve(__dirname, 'src/index.js'),
    output: [
        {
            file: path.resolve(__dirname, 'dist/rybj.cjs.js'),
            format: 'cjs',
            name: 'RYBJ'
        },
        {
            file: path.resolve(__dirname, 'dist/rybj.esm.js'),
            format: 'esm',
            name: 'RYBJ'
        },
        {
            file: path.resolve(__dirname, 'dist/rybj.umd.js'),
            format: 'umd',
            name: 'RYBJ'
        },
        {
            file: path.resolve(__dirname, 'dist/rybj.iife.js'),
            format: 'iife',
            name: 'RYBJ'
        },
        {
            file: path.resolve(__dirname, 'dist/rybj.system.js'),
            format: 'system',
            name: 'RYBJ'
        },
        {
            file: path.resolve(__dirname, 'dist/rybj.amd.js'),
            format: 'amd',
            name: 'RYBJ'
        }
    ]
}